import { createRouter, createWebHistory } from 'vue-router'

import indexPage from "@/views/indexPage.vue";
import JishangPublishing from "@/views/MoreAll/JishangPublishing.vue";
import JishangLegend from "@/views/MoreAll/JishangLegend.vue";
import JishangHistoricalNotes from "@/views/MoreAll/JishangHistoricalNotes.vue";
import JishangDynamicState from "@/views/MoreAll/JishangDynamicState.vue";
import FriendsWill from "@/views/MoreAll/FriendsWill.vue";
import JishangBonus from "@/views/MoreAll/JishangBonus.vue";
import ApplyForArea from "@/views/InitiateAnApplication/ApplyForArea.vue";
import PersonalCenter from "@/views/PersonalCenter/PersonalCenter.vue";
import HomePage from "@/views/homePage/HomePage.vue";
import ServiceReleaseArea from "@/views/InitiateAnApplication/ServiceReleaseArea.vue";
import BigTurntable from "@/views/Wheel/BigTurntable.vue";
import LoginPage from "@/views/Login/LoginPage.vue";
import CharacterDetails from "@/views/homePage/CharacterDetails.vue";
import PointsMallPage from "@/views/homePage/PointsMallPage.vue";
import MorePage from "@/views/homePage/MorePage.vue";
import MessagePage from "@/views/homePage/MessagePage.vue";
import SwiperNext from "@/views/homePage/SwiperNext.vue";
import PrivateBoardJump from "@/views/homePage/PrivateBoardJump.vue";
import PrivateBoardJumpDetail from "@/views/homePage/PrivateBoardJumpDetail.vue";
import VipCenter from "@/views/PersonalCenter/VipCenter.vue";
import JumpView from "@/views/MoreAll/JumpView.vue";
import PersoalAplyAndPublish from "@/views/PersonalCenter/PersoalAplyAndPublish.vue";
import IntegralDetails from "@/views/PersonalCenter/IntegralDetails.vue";
import ExchangeRecord from "@/views/PersonalCenter/ExchangeRecord.vue";
import ApplyDetail from "@/views/PersonalCenter/ApplyDetail.vue";
import PublishDetail from "@/views/PersonalCenter/PublishDetail.vue";
import lotteryView from "@/views/Wheel/lotteryView.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

    {
      path: '/index',
      // name: 'home',
      component: indexPage
    },
    // 个人中心
    {
      path: '/PersonalCenter',
      component: PersonalCenter,
      meta:{type:true},
    },
    // VIp中心
    {
      path: '/VipCenter',
      component: VipCenter
    },
      //我的申请我的发布我的消息
    {
      path: '/IntegralDetails',
      component: IntegralDetails
    },
    //  积分明细
    {
      path: '/PersoalAplyAndPublish',
      component: PersoalAplyAndPublish
    },
      // 兑换记录ExchangeRecord
    {
      path: '/ExchangeRecord',
      component: ExchangeRecord
    },
      // 申请详情
    {
      path: '/ApplyDetail',
      component: ApplyDetail
    },
    // 发布详情
    {
      path: '/PublishDetail',
      component: PublishDetail
    },
    {
      path: '/home',
      // name: 'home',
      component: HomePage,
      meta:{type:true},
    },{
      path: '/points',
      // name: 'home',
      component:  PointsMallPage
    },
    {
      path: '/more',
      // name: 'home',
      component:  MorePage
    },
    {
      path: '/message',
      // name: 'home',
      component:  MessagePage
    },
    {
      path: '/charater',
      component: CharacterDetails
    },

    {
      path: '/swipernext',
      // name: 'home',
      component:  SwiperNext
    },
    {
      path: '/privatejump',
      // name: 'home',
      component:  PrivateBoardJump
    },
    {
      path: '/privatejumpdet',
      // name: 'home',
      component:  PrivateBoardJumpDetail
    },
    {
      path: '/',
      // name: 'home',
      redirect:'/login'
    },   {
      path: '/login',
      // name: 'home',
      component: LoginPage
    },

    {
      //冀商发布
      path:'/JishangPublishing',
      component:JishangPublishing
    },
    {
      //冀商传奇
      path:'/JishangLegend',
      component:JishangLegend
    },
    {
      //冀商史话
      path:'/JishangHistoricalNotes',
      component:JishangHistoricalNotes
    },
    {
      //冀商动态
      path:'/JishangDynamicState',
      component:JishangDynamicState
    }
    ,{
      //友商商会
      path:'/FriendsWill',
      component:FriendsWill
    }
    ,{
      //冀商福利
      path:'/JishangBonus',
      component:JishangBonus
    }
    ,{
      //发起申请
      path:'/ApplyForSQ',
      component:ApplyForArea
    }
    ,{
      //业务发布
      path: '/ServiceReleaseArea',
      component:ServiceReleaseArea
    },
    {
      //大转盘
      path:'/BigTurntable',
      component:BigTurntable
    }
    // 抽奖
    ,{
      //大转盘
      path:'/lotteryView',
      component:lotteryView
    }
    ,{
      path:'/jump',
      component:JumpView
    }
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (About.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import('../views/AboutView.vue')
    // }
  ]
})

export default router
